jQuery.fn.select_image = function(id, settings) {
	$(this).click(function(){		
		var finder = new CKFinder(settings.fck_editor_url + 'system/plugins/ckfinder/');
		finder.SelectFunctionData = SelectFileData;
		finder.Popup();
	 });
};
function SelectFileData(){
	//$('#'+id).attr('val', val);
	alert("fd");
}
